using new (std::nothrow) instead of malloc#6251
Conversation
|
OT: Should this be documented? I only recently discovered that espasyncwebserver doing |
|
It is useless when exceptions are disabled in the toolchain. edit: our |
|
Yes, but my main question is about the null check routines. It does not trigger exception, but board reset still happens when internal malloc fails in low memory situations. async web server being the case where there are flow objects are constructed with new and checked for NULL afterwards. which spectacularly fails with 4KB-large context:sys stack trace |
No description provided.